package com.itheima.pojo;

public class Orders {
    private Integer id;
    private Integer uid;
    private String ordertime;
    private double money;
     //一对一: 一个订单只属于一个用户
    private User xx;
   // 省略get/get 和 toString方法,自己补上

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", uid=" + uid +
                ", ordertime='" + ordertime + '\'' +
                ", money=" + money +
                ", xx=" + xx +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public User getXx() {
        return xx;
    }

    public void setXx(User xx) {
        this.xx = xx;
    }
}